import { createRouter, createWebHashHistory } from 'vue-router';
import { routes } from './config';

export const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

router.beforeResolve((route) => {
  document.title = route.meta?.title;
});
